package com.attendance.www.hr.timer;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.attendance.www.hr.service.ICheckinoutMorningService;
import com.attendance.www.hr.service.ISchedulWeekService;

@Service
public class SchedulDayTimer {
	
	@Resource
	private ISchedulWeekService schedulWeekService;
	@Resource
	private ICheckinoutMorningService checkinoutMorningService;
	
	/**
	 * 定时执行生成下个月班次数据方法
	 */
	public void generateSchedulDay() {
		schedulWeekService.saveSchedulDayKeyAuto();
		
		//删除三个月前的数据
		checkinoutMorningService.deleteDatas();
	}

}
